﻿@model IEnumerable<SoftHotel.Models.ReservaHab>

@{
    ViewBag.Title = "Search";
    Layout = "~/Views/Shared/_Layout.cshtml";
}


<h1><strong>Resultado de B&uacute;squeda</strong></h1>
<p>&nbsp;</p>
@using (Html.BeginForm())
{ 
<table id="MainContent_Table3" rules="all" style="background-color: #BDBDBD; width: 900px; margin-bottom: 0px;" border="0">
  <tbody>
    <tr>
      <td> 
        <input type="submit" name="button" value="Regresar" /></td></tr>
  </tbody>
</table>
}
 </br>
<table id="MainContent_Table4" rules="all" style="border-color: Black; width: 900px; margin-bottom: 0px;" border="1">
  <tbody>
    <tr>
      <td style="font-weight: bold; width: 110px;" align="center">N° de Reserva </td>
      <td style="font-weight: bold; width: 110px;" align="center">N&deg; de Documento </td>
      <td style="font-weight: bold; width: 130px;" align="center">Tipo de Documento </td>
      <td style="font-weight: bold; width: 120px;" align="center">Nombres</td>
      <td style="font-weight: bold; width: 110px;" align="center">Apellidos</td>
      <td style="font-weight: bold; width: 110px;" align="center">Check-in</td>
      <td style="font-weight: bold; width: 110px;" align="center">Check-out</td>
    </tr>

     @foreach (var reserva in Model)
    {  
            <tr>		     
                <td align="center"><a href="/DocVentas/Detalle?idReserva=@reserva.idReserva">@Html.DisplayFor(modelItem => reserva.numeroReserva)</a></td>   
		        <td align="center">@Html.DisplayFor(modelItem => reserva.cliente.numDoc)</td>
		        <td align="center">@Html.DisplayFor(modelItem => reserva.cliente.objeTipoDoc.valor)</td>
                <td align="center">@Html.DisplayFor(modelItem => reserva.cliente.nombres)</td>
                <td align="center">@Html.DisplayFor(modelItem => reserva.cliente.apellidoMaterno)</td>
                <td align="center">@Html.DisplayFor(modelItem => reserva.fechaCheckin)</td>
		        <td align="center">@Html.DisplayFor(modelItem => reserva.fechaCheckout)</td>
	        </tr>
    }